import {
    requestLive,
    request
} from '../index'
export function getLiveData(roomid) {
    return requestLive({
        url: '/xlive/web-room/v1/dM/gethistory',
        params: {
            roomid
        }
    })
}
export function sendMessage(msg) {
    let formData = new FormData();
    formData.append("key", "value");
    return request({
        method: 'POST',
        url: "/msg/send",
        formData: {
            bubble: 0,
            msg: msg,
            color: 16777215,
            mode: 1,
            fontsize: 25,
            rnd: 1632559469,
            roomid: 10426331,
            csrf: '4541da4cf5884609687e9046da824919',
            csrf_token: '4541da4cf5884609687e9046da824919',
        }
    })
}